﻿<!DOCTYPE html>
<html>
<head>
<script>
		//are we phonegap ready?
		function loaded () {
			window.PhoneGap ? document.addEventListener("deviceready", onDeviceReady, false) : ready();
		}

		//ready for non-phonegap
		function ready () {
			setTimeout(function () {
				window.location.href = "/";
			}, 100);
		}


  		// PhoneGap is ready
  		//
  		function onDeviceReady() {
  			var dkey = device.uuid;
  			var dname = device.name;
  			var finalURL = "/?dkey=" + dkey + "&dname=" + dname


  			setTimeout(function () {
  				window.location.href = finalURL;
  			}, 100);


  		}  	
  </script>
</head>
<body onload="loaded()">

</body>
</html>
